package com.springboot.cloud.demos.producer.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.cloud.demos.entity.po.AppVersion;
import com.springboot.cloud.demos.entity.po.Banner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import retrofit2.http.Query;

@Repository
@Mapper
public interface AppVersionMapper extends BaseMapper<AppVersion> {
    @Select("SELECT a.* from t_app_version a where platform = '${platform}' order by version_code desc")
    AppVersion last(@Param("platform") String platform);
}
